<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditFdCombosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditFdCombosLabel_combo}" for="combo" />
                    <h:inputText id="combo" value="#{fdCombosController.selected.combo}" title="#{bundle.EditFdCombosTitle_combo}" required="true" requiredMessage="#{bundle.EditFdCombosRequiredMessage_combo}"/>
                    <h:outputLabel value="#{bundle.EditFdCombosLabel_nombre}" for="nombre" />
                    <h:inputText id="nombre" value="#{fdCombosController.selected.nombre}" title="#{bundle.EditFdCombosTitle_nombre}" required="true" requiredMessage="#{bundle.EditFdCombosRequiredMessage_nombre}"/>
                    <h:outputLabel value="#{bundle.EditFdCombosLabel_cliente}" for="cliente" />
                    <h:inputText id="cliente" value="#{fdCombosController.selected.cliente}" title="#{bundle.EditFdCombosTitle_cliente}" required="true" requiredMessage="#{bundle.EditFdCombosRequiredMessage_cliente}"/>
                    <h:outputLabel value="#{bundle.EditFdCombosLabel_precio}" for="precio" />
                    <h:inputText id="precio" value="#{fdCombosController.selected.precio}" title="#{bundle.EditFdCombosTitle_precio}" required="true" requiredMessage="#{bundle.EditFdCombosRequiredMessage_precio}"/>
                    <h:outputLabel value="#{bundle.EditFdCombosLabel_imagenChica}" for="imagenChica" />
                    <h:inputText id="imagenChica" value="#{fdCombosController.selected.imagenChica}" title="#{bundle.EditFdCombosTitle_imagenChica}" required="true" requiredMessage="#{bundle.EditFdCombosRequiredMessage_imagenChica}"/>
                    <h:outputLabel value="#{bundle.EditFdCombosLabel_imagenGrande}" for="imagenGrande" />
                    <h:inputText id="imagenGrande" value="#{fdCombosController.selected.imagenGrande}" title="#{bundle.EditFdCombosTitle_imagenGrande}" required="true" requiredMessage="#{bundle.EditFdCombosRequiredMessage_imagenGrande}"/>
                    <h:outputLabel value="#{bundle.EditFdCombosLabel_estado}" for="estado" />
                    <h:inputText id="estado" value="#{fdCombosController.selected.estado}" title="#{bundle.EditFdCombosTitle_estado}" />
                </h:panelGrid>
                <h:commandLink action="#{fdCombosController.update}" value="#{bundle.EditFdCombosSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditFdCombosViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{fdCombosController.prepareList}" value="#{bundle.EditFdCombosShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditFdCombosIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
